/**
 * 这是模型的静态常量配置
 * 和货架的配置（一般要从数据库读取，这里仅做演示）
 */
/** ***************************************************************** */

var PLANE_LENGTH = 24;  //货架板面长度
var PLANE_WIDTH = 68;   //货架板面宽度
var PLANE_HEIGHT = 2;   //货架板面高度
var HOLDER_LENGTH = 2;  //支架长度
var HOLDER_WIDTH = 2;   //支架宽度
var HOLDER_HEIGHT = 25; //支架高度
var LAYER_NUM = 3;      //货架层数
var COLUMN_NUM = 4;     //货架每层列数
var BOX_SIZE = 16;      //货物的大小(立方体)

//货架数组
var shelf_list = new Array();
var z = -580;
var k = 0
for(var i=0;i<5;i++){
  var x = -925;
  for(var j=0;j<11;j++){
    shelf_list.push({StorageZoneId:'Z1',shelfId:'A'+(k+1),shelfName:'货架A'+(k+1),x:x,y:5,z:z});
    x=x+80;
    k=k+1;
  }
  z=z+80;
}
/* shelf_list.push({StorageZoneId:'Z1',shelfId:'A1',shelfName:'货架A1',x:-925,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A2',shelfName:'货架A2',x:-845,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A3',shelfName:'货架A3',x:-765,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A4',shelfName:'货架A4',x:-685,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A5',shelfName:'货架A5',x:-605,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A6',shelfName:'货架A6',x:-525,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A7',shelfName:'货架A7',x:-445,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A8',shelfName:'货架A8',x:-365,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A9',shelfName:'货架A9',x:-285,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A10',shelfName:'货架A10',x:-205,y:5,z:-580});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A11',shelfName:'货架A11',x:-125,y:5,z:-580}); */


/* var z1 = -580;
var b = 0
for(var i=0;i<5;i++){
  var x1 = 75;
  for(var j=0;j<11;j++){
    shelf_list.push({StorageZoneId:'Z1',shelfId:'B'+(b+1),shelfName:'货架B'+(b+1),x:x1,y:1,z:z1});
    x1=x1+80;
    b=b+1;
  }
  z1=z1+80;
} */

/* shelf_list.push({StorageZoneId:'Z1',shelfId:'A8',shelfName:'货架A8',x:300,y:27,z:-350});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A9',shelfName:'货架A9',x:400,y:27,z:-350});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A10',shelfName:'货架A10',x:500,y:27,z:-350});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A11',shelfName:'货架A11',x:600,y:27,z:-350});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A12',shelfName:'货架A12',x:700,y:27,z:-350}); */

/* var z2 = 65;
var c = 0
for(var i=0;i<5;i++){
  var x2 = -925;
  for(var j=0;j<11;j++){
    shelf_list.push({StorageZoneId:'Z1',shelfId:'C'+(c+1),shelfName:'货架C'+(c+1),x:x2,y:1,z:z2});
    x2=x2+80;
    c=c+1;
  }
  z2=z2+80;
} */

//shelf_list.push({StorageZoneId:'Z1',shelfId:'C1',shelfName:'货架C1',x:-925,y:1,z:65});
/* shelf_list.push({StorageZoneId:'Z1',shelfId:'A14',shelfName:'货架A14',x:-600,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A15',shelfName:'货架A15',x:-500,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A16',shelfName:'货架A16',x:-400,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A17',shelfName:'货架A17',x:-300,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A18',shelfName:'货架A18',x:-200,y:27,z:280}); */

/* var z3 = 65;
var d = 0
for(var i=0;i<5;i++){
  var x3 = 75;
  for(var j=0;j<11;j++){
    shelf_list.push({StorageZoneId:'Z1',shelfId:'D'+(d+1),shelfName:'货架D'+(d+1),x:x3,y:1,z:z3});
    x3=x3+80;
    d=d+1;
  }
  z3=z3+80;
} */
//shelf_list.push({StorageZoneId:'Z1',shelfId:'D1',shelfName:'货架D1',x:75,y:1,z:65});
/* shelf_list.push({StorageZoneId:'Z1',shelfId:'A20',shelfName:'货架A28',x:300,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A21',shelfName:'货架A21',x:400,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A22',shelfName:'货架A22',x:500,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A23',shelfName:'货架A23',x:600,y:27,z:280});
shelf_list.push({StorageZoneId:'Z1',shelfId:'A24',shelfName:'货架A24',x:700,y:27,z:280}); */

function GET_PLANE_LENGTH(){
  return PLANE_LENGTH;
}

function GET_PLANE_WIDTH(){
  return PLANE_WIDTH;
}

function GET_PLANE_HEIGHT(){
  return PLANE_HEIGHT;
}

function GET_HOLDER_LENGTH(){
  return HOLDER_LENGTH;
}

function GET_HOLDER_WIDTH(){
  return HOLDER_WIDTH;
}

function GET_HOLDER_HEIGHT(){
  return HOLDER_HEIGHT;
}

function GET_LAYER_NUM(){
  return LAYER_NUM;
}

function GET_COLUMN_NUM(){
  return COLUMN_NUM;
}

function GET_BOX_SIZE(){
  return BOX_SIZE;
}

function GET_SHELF_LIST(){
  return shelf_list;
}
